home *** CD-ROM | disk | FTP | other *** search
- /* cfengine for GNU
-
- Copyright (C) 1995
- Free Software Foundation, Inc.
-
- This file is part of GNU cfengine - written and maintained
- by Mark Burgess, Dept of Computing and Engineering, Oslo College,
- Dept. of Theoretical physics, University of Oslo
-
- This program is free software; you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by the
- Free Software Foundation; either version 2, or (at your option) any
- later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
-
- */
-
-
-
- /*******************************************************************/
- /* */
- /* GLOBAL class default variables for cfengine */
- /* These variables are what needs to be modified if you add or */
- /* modify class definitions... remember also to change clsattr */
- /* and search for the os types in cfengine.c (mount stuff) */
- /* */
- /*******************************************************************/
-
- #include "cf.defs.h"
-
- /*********************************************************************/
-
- /* See also "enum classes" in cf.defs.h */
- char *CLASSTEXT[] = /* If you change here change enum classes too! */
- {
- "",
- "<soft>",
- "sun4",
- "ultrix",
- "hpux10",
- "hpux",
- "aix",
- "linux",
- "solaris",
- "osf",
- "digital",
- "sun3",
- "irix4",
- "irix",
- "irix64",
- "freebsd",
- "solarisx86",
- "bsd4_3",
- "newsos",
- "netbsd",
- "aos",
- "bsdos",
- "nextstep",
- "cray",
- "gnu",
- "nt",
- "unix_sv",
- "openbsd",
- "sco",
- "unused1",
- "unused2",
- "unused3",
- NULL
- };
-
- /*********************************************************************/
-
- /* remember to change cf.defs.h !! */
-
- char *CLASSATTRIBUTES[clssattr][attrdim] =
- { /* Only as many characters */
- "-","-","-", /* as appear here are matched. The */
- "-","-","-", /* fields are sysname and machine */
- "sunos","*","4*", /* sun 4 */
- "ultrix","risc","4*", /* ultrix */
- "hp-ux","9000*","?.1?.*", /* hpux10 */
- "hp-ux","9000*","*", /* hpux */
- "aix","*","*", /* aix */
- "linux","*","*", /* linux */
- "sunos","sun4?","5*", /* solaris */
- "osf1","alpha","*", /* osf1 */
- "osf1","alpha","4*", /* digital */
- "sunos","sun3","4*", /* sun3 */
- "irix4","ip*","4*", /* irix4 */
- "irix", "ip*","*", /* irix */
- "irix64","ip*","*", /* irix64 */
- "freebsd","i?86","*", /* freebsd */
- "sunos","i86pc","5*", /* solarisx86 */
- "bsd","*","*", /* bsd 4.3 */
- "newsos","*","*", /* newsos4 */
- "netbsd","*","*", /* NetBSD */
- "aos","*","*", /* AOS */
- "bsd/os","*","*", /* BSDI */
- "nextstep","*","*", /* nextstep */
- "sn*","cray*","*", /* cray */
- "gnu*","*","*", /* gnu */
- "cygwin_nt*","*","*", /* NT */
- "unix_sv","*","*", /* Unixware */
- "openbsd","*","*", /* OpenBSD */
- "sco_sv","*","*", /* SCO */
- "unused1","blah","blah",
- "unused2","blah","blah",
- "unused3","blah","blah",
- NULL,NULL,NULL
- };
-
- /*********************************************************************/
-
- char *VPSCOMM[clssattr] =
- {
- "",
- "",
- "/bin/ps", /* sun 4 */
- "/bin/ps", /* ultrix */
- "/bin/ps", /* hpux10 */
- "/bin/ps", /* hpux */
- "/bin/ps", /* aix */
- "/bin/ps", /* linux */
- "/bin/ps", /* solaris */
- "/bin/ps", /* osf1 */
- "/bin/ps", /* digital */
- "/bin/ps", /* sun3 */
- "/bin/ps", /* irix4 */
- "/bin/ps", /* irix */
- "/bin/ps", /* irix64 */
- "/bin/ps", /* freebsd */
- "/bin/ps", /* solarisx86 */
- "/bin/ps", /* bsd 4.3 */
- "/bin/ps", /* newos4 */
- "/bin/ps", /* netbsd */
- "/bin/ps", /* AOS */
- "/bin/ps", /* BSDI */
- "/bin/ps", /* nextstep */
- "/bin/ps", /* cray */
- "/bin/ps", /* gnu */
- "/bin/ps", /* NT - cygnus */
- "/bin/ps", /* unixware */
- "/bin/ps", /* openbsd */
- "/bin/ps", /* sco */
- "/bin/ps",
- "/bin/ps",
- "/bin/ps",
- NULL
- };
-
- /*********************************************************************/
-
- char *VPSOPTS[clssattr] =
- {
- "",
- "",
- "-ax", /* sun4 */
- "-ax", /* ultrix */
- "-ef", /* hp10 */
- "-ef", /* hpux */
- "-ef", /* aix */
- "-ax", /* linux */
- "-ef", /* solaris */
- "-ef", /* osf1 */
- "-ax", /* digital */
- "-ax", /* sun3 */
- "-ef", /* irix4 */
- "-ef", /* irix */
- "-ef", /* irix64 */
- "-ax", /* freebsd */
- "-ef", /* solarisx86 */
- "-ax", /* bsd 4.3 */
- "-ax", /* newsos4 */
- "-ax", /* netbsd */
- "-ax", /* AOS */
- "-ax", /* BSDI */
- "-ax", /* nextstep */
- "-ef", /* cray */
- "-ax", /* gnu */
- "-a", /* NT */
- "-ef", /* Unixware */
- "-ax", /* openbsd */
- "-ef", /* sco */
- "-",
- "-",
- "-",
- NULL
- };
-
- /*********************************************************************/
-
- char *VMOUNTCOMM[clssattr] =
- {
- "", /* see cf.defs.h */
- "",
- "/etc/mount -va", /* sun4 */
- "/etc/mount -va", /* ultrix */
- "/sbin/mount -ea", /* hpux10 */
- "/etc/mount -va", /* hpux */
- "/etc/mount -t nfs", /* aix */
- "/bin/mount -va", /* linux */
- "/usr/sbin/mount -a", /* solaris */
- "/usr/sbin/mount -va", /* osf1 */
- "/usr/sbin/mount -va", /* digital */
- "/etc/mount -va", /* sun3 */
- "/sbin/mount -va", /* irix4 */
- "/sbin/mount -va", /* irix */
- "/sbin/mount -va", /* irix64 */
- "/sbin/mount -va", /* freebsd */
- "/usr/sbin/mount -a", /* solarisx86 */
- "/etc/mount -a", /* bsd 4.3 */
- "/etc/mount -a", /* newsos4 */
- "/sbin/mount -a", /* netbsd */
- "/etc/mount -a", /* AOS */
- "/sbin/mount -a", /* BSDI */
- "/usr/etc/mount -a", /* nextstep */
- "/etc/mount -va", /* cray */
- "/bin/mount -va", /* gnu */
- "/bin/sh /etc/fstab", /* NT - possible security issue */
- "/sbin/mountall", /* Unixware */
- "/sbin/mount", /* openbsd */
- "/etc/mountall", /* sco */
- "unused-blah",
- "unused-blah",
- "unused-blah",
- NULL
- };
-
- /*********************************************************************/
-
- char *VUNMOUNTCOMM[clssattr] =
- {
- "", /* see cf.defs.h */
- "",
- "/etc/umount", /* sun4 */
- "/etc/umount", /* ultrix */
- "/sbin/umount", /* hpux10 */
- "/etc/umount", /* hpux */
- "/etc/umount", /* aix */
- "/bin/umount", /* linux */
- "/etc/umount", /* solaris */
- "/usr/sbin/umount", /* osf1 */
- "/usr/sbin/umount", /* digital */
- "/etc/umount", /* sun3 */
- "/sbin/umount", /* irix4 */
- "/sbin/umount", /* irix */
- "/sbin/umount", /* irix64 */
- "/sbin/umount", /* freebsd */
- "/etc/umount", /* solarisx86 */
- "/etc/umount", /* bsd4.3 */
- "/etc/umount", /* newsos4 */
- "/sbin/umount", /* netbsd */
- "/etc/umount", /* AOS */
- "/sbin/umount", /* BSDI */
- "/usr/etc/umount", /* nextstep */
- "/etc/umount", /* cray */
- "/sbin/umount", /* gnu */
- "/bin/umount", /* NT */
- "/sbin/umount", /* Unixware */
- "/sbin/umount", /* openbsd */
- "/etc/umount", /* sco */
- "unused-blah",
- "unused-blah",
- "unused-blah",
- NULL
- };
-
-
-
- /*********************************************************************/
-
- char *VMOUNTOPTS[clssattr] =
- {
- "", /* see cf.defs.h */
- "",
- "bg,hard,intr", /* sun4 */
- "bg,hard,intr", /* ultrix */
- "bg,hard,intr", /* hpux10 */
- "bg,hard,intr", /* hpux */
- "bg,hard,intr", /* aix */
- "defaults", /* linux */
- "bg,hard,intr", /* solaris */
- "bg,hard,intr", /* osf1 */
- "bg,hard,intr", /* digital */
- "bg,hard,intr", /* sun3 */
- "bg,hard,intr", /* irix4 */
- "bg,hard,intr", /* irix */
- "bg,hard,intr", /* irix64 */
- "bg,intr", /* freebsd */
- "bg,hard,intr", /* solarisx86 */
- "bg,hard,intr", /* bsd4.3 */
- "bg,hard,intr", /* newsos4 */
- "-i,-b", /* netbsd */
- "bg,hard,intr", /* AOS */
- "bg,intr", /* BSDI */
- "bg,hard,intr", /* nextstep */
- "bg,hard,intr", /* cray */
- "defaults", /* gnu */
- "", /* NT */
- "bg,hard,intr", /* Unixware */
- "-i,-b", /* openbsd */
- "bg,hard,intr", /* sco */
- "unused-blah",
- "unused-blah",
- "unused-blah",
- NULL
- };
-
- /*********************************************************************/
-
- char *VIFDEV[clssattr] =
- {
- "-",
- "-", /* see cf.defs.h */
- "le0", /* sun4 */
- "ln0", /* ultrix */
- "lan0", /* hpux10 */
- "lan0", /* hpux */
- "en0", /* aix */
- "eth0", /* linux */
- "le0", /* solaris */
- "ln0", /* osf1 */
- "ln0", /* digital */
- "le0", /* sun3 */
- "ec0", /* irix4 */
- "ec0", /* irix */
- "ec0", /* irix64 */
- "ep0", /* freebsd */
- "dnet0", /* solarisx86 */
- "le0", /* bsd4.3 */
- "en0", /* newsos4 */
- "le0", /* netbsd */
- "un0", /* AOS */
- "le0", /* BSDI */
- "en0", /* nextstep -default */
- "en0", /* cray */
- "eth0", /* gnu */
- "N/A", /* NT */
- "unknown", /* Unixware */
- "le0", /* openbsd */
- "net0", /* sco */
- "unused-blah",
- "unused-blah",
- "unused-blah",
- NULL
- };
-
-
- /*********************************************************************/
-
- char *VRESOLVCONF[clssattr] =
- {
- "-",
- "-", /* see cf.defs.h */
- "/etc/resolv.conf", /* sun4 */
- "/etc/resolv.conf", /* ultrix */
- "/etc/resolv.conf", /* hpux10 */
- "/etc/resolv.conf", /* hpux */
- "/etc/resolv.conf", /* aix */
- "/etc/resolv.conf", /* linux */
- "/etc/resolv.conf", /* solaris */
- "/etc/resolv.conf", /* osf1 */
- "/etc/resolv.conf", /* digital */
- "/etc/resolv.conf", /* sun3 */
- "/usr/etc/resolv.conf", /* irix4 */
- "/etc/resolv.conf", /* irix */
- "/etc/resolv.conf", /* irix64 */
- "/etc/resolv.conf", /* freebsd */
- "/etc/resolv.conf", /* solarisx86 */
- "/etc/resolv.conf", /* bsd4.3 */
- "/etc/resolv.conf", /* newsos4 */
- "/etc/resolv.conf", /* netbsd */
- "/etc/resolv.conf", /* AOS */
- "/etc/resolv.conf", /* BSDI */
- "/etc/resolv.conf", /* nextstep */
- "/etc/resolv.conf", /* cray */
- "/etc/resolv.conf", /* gnu */
- "/etc/resolv.conf", /* NT */
- "/etc/resolv.conf", /* Unixware */
- "/etc/resolv.conf", /* openbsd */
- "/etc/resolv.conf", /* sco */
- "unused-blah",
- "unused-blah",
- "unused-blah",
- NULL
- };
-
-
-
- /*********************************************************************/
-
- char *VFSTAB[clssattr] =
- {
- "-",
- "-", /* see cf.defs.h */
- "/etc/fstab", /* sun4 */
- "/etc/fstab", /* ultrix */
- "/etc/fstab", /* hpux10 */
- "/etc/checklist", /* hpux */
- "/etc/filesystems", /* aix */
- "/etc/fstab", /* linux */
- "/etc/vfstab", /* solaris */
- "/etc/fstab", /* osf1 */
- "/etc/fstab", /* digital */
- "/etc/fstab", /* sun3 */
- "/etc/fstab", /* irix4 */
- "/etc/fstab", /* irix */
- "/etc/fstab", /* irix64 */
- "/etc/fstab", /* freebsd */
- "/etc/vfstab", /* solarisx86 */
- "/etc/fstab", /* bsd4.3 */
- "/etc/fstab", /* newsos4 */
- "/etc/fstab", /* netbsd */
- "/etc/fstab", /* AOS */
- "/etc/fstab", /* BSDI */
- "/etc/fstab", /* nextstep */
- "/etc/fstab", /* cray */
- "/etc/fstab", /* gnu */
- "/etc/fstab", /* NT */
- "/etc/vfstab", /* Unixware */
- "/etc/fstab", /* openbsd */
- "/etc/default/filesys", /* sco */
- "unused-blah",
- "unused-blah",
- "unused-blah",
- NULL
- };
-
- /*********************************************************************/
-
- char *VMAILDIR[clssattr] =
- {
- "-",
- "-", /* see cf.defs.h */
- "/var/spool/mail", /* sun4 */
- "/usr/spool/mail", /* ultrix */
- "/var/mail", /* hpux10 */
- "/usr/mail", /* hpux */
- "/var/spool/mail", /* aix */
- "/var/spool/mail", /* linux */
- "/var/mail", /* solaris */
- "/usr/spool/mail", /* osf1 */
- "/usr/spool/mail", /* digital */
- "/var/spool/mail", /* sun3 */
- "/usr/mail", /* irix4 */
- "/usr/mail", /* irix */
- "/usr/var/mail", /* irix64 */
- "/var/mail", /* freebsd */
- "/var/mail", /* solarisx86 */
- "/usr/spool/mail", /* bsd4.3 */
- "/usr/spool/mail", /* newsos4 */
- "/var/mail", /* netbsd */
- "/usr/spool/mail", /* AOS */
- "/var/mail", /* BSDI */
- "/usr/spool/mail", /* nextstep */
- "/usr/mail", /* cray */
- "/var/spool/mail", /* gnu */
- "N/A", /* NT */
- "/var/mail", /* Unixware */
- "/var/mail", /* openbsd */
- "/var/spool/mail", /* sco */
- "unused-blah",
- "unused-blah",
- "unused-blah",
- NULL
- };
-
- /*********************************************************************/
-
- char *VNETSTAT[clssattr] =
- {
- "-",
- "-",
- "/usr/ucb/netstat -rn", /* sun4 */
- "/usr/ucb/netstat -rn", /* ultrix */
- "/usr/bin/netstat -rn", /* hpux10 */
- "/usr/bin/netstat -rn", /* hpux */
- "/usr/bin/netstat -rn", /* aix */
- "/bin/netstat -rn", /* linux */
- "/usr/ucb/netstat -rn", /* solaris */
- "/usr/sbin/netstat -rn", /* osf1 */
- "/usr/sbin/netstat -rn", /* digital */
- "/usr/ucb/netstat -rn", /* sun3 */
- "/usr/etc/netstat -rn", /* irix4 */
- "/usr/etc/netstat -rn", /* irix */
- "/usr/etc/netstat -rn", /* irix64 */
- "/usr/bin/netstat -rn", /* freebsd */
- "/bin/netstat -rn", /* solarisx86 */
- "/usr/ucb/netstat -rn", /* bsd4.3 */
- "/usr/ucb/netstat -rn", /* newsos4 */
- "/usr/bin/netstat -rn", /* netbsd */
- "/usr/ucb/netstat -rn", /* AOS */
- "/usr/sbin/netstat -rn", /* BSDI */
- "/usr/ucb/netstat -rn", /* nextstep */
- "/usr/ucb/netstat -rn", /* cray */
- "/bin/netstat -rn", /* gnu */
- "/C/WINNT/System32/netstat", /* NT */
- "/usr/bin/netstat -rn", /* Unixware */
- "/usr/bin/netstat -rn", /* openbsd */
- "/usr/bin/netstat -rn", /* sco */
- "unused-blah",
- "unused-blah",
- "unused-blah",
- NULL
- };
-
-
-